package com.cy.pj.sys.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author LiuXu
 * @create 2020-07-10 11:07
 */

@RequestMapping("/")
@Controller
public class PageController {
    @RequestMapping("doIndexUI")
    public String doIndexUI() {
        return "starter";
    }

    //返回日志列表
    @RequestMapping("log/log_list")
    public String doLogUI() {
        return "sys/log_list";
    }

    //返回分页页面
    @RequestMapping("doPageUI")
    public String doPageUI() {
        return "common/page";
    }

    //返回菜单列表
    @RequestMapping("menu/menu_list")
    public String doMenuUI() {
        return "sys/menu_list";
    }

    @RequestMapping("{module}/{moduleUI}")
    public String doModuleUI(@PathVariable String moduleUI) {
        return "sys/" + moduleUI;
    }


}

